package com.example.dao;

import com.example.pojo.Country;
import com.example.pojo.CountryExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface CountryMapper {

    int countByExample(CountryExample example);

    int deleteByExample(CountryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Country record);

    int insertSelective(Country record);

    List<Country> selectByExample(CountryExample  example);

    Country selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Country record, @Param("example") CountryExample example);

    int updateByExample(@Param("record") Country record, @Param("example") CountryExample example);

    int updateByPrimaryKeySelective(Country record);

    int updateByPrimaryKey(Country record);

    List<Country> WithEnemyAttribute_selectByExample(CountryExample countryExample);

    Country WithEnemyAttribute_selectByPrimaryKey(Integer id);

    List<Country> WithEnemyAttributeSelectLike(@Param("countryName") String countryName);

    List<Country> WithEnemyAttributeSelectLike1(@Param("countryName") String countryName,@Param("enemyAttributeId") Integer enemyAttributeId);

    List<Country> WithEnemyAttributeSelectLike2(@Param("countryName") String countryName, @Param("enemyAttributeId") Integer enemyAttributeId);

    List<Country> getRegistMsgByCondition();

    List<Country> selectByTime(Map<String,Object> map);
}